package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产订单管理对象 tb_production_orders
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class ProductionOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一标识 */
    private Long orderId;

    /** 产品ID，外键关联产品表 */
    @Excel(name = "产品ID，外键关联产品表")
    private Long productId;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private Long productionQuantity;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 分配的设备ID，外键关联设备表 */
    @Excel(name = "分配的设备ID，外键关联设备表")
    private Long assignedEquipmentId;

    /** 分配的员工ID，外键关联员工表 */
    @Excel(name = "分配的员工ID，外键关联员工表")
    private Long assignedEmployeeId;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductionQuantity(Long productionQuantity) 
    {
        this.productionQuantity = productionQuantity;
    }

    public Long getProductionQuantity() 
    {
        return productionQuantity;
    }
    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setAssignedEquipmentId(Long assignedEquipmentId) 
    {
        this.assignedEquipmentId = assignedEquipmentId;
    }

    public Long getAssignedEquipmentId() 
    {
        return assignedEquipmentId;
    }
    public void setAssignedEmployeeId(Long assignedEmployeeId) 
    {
        this.assignedEmployeeId = assignedEmployeeId;
    }

    public Long getAssignedEmployeeId() 
    {
        return assignedEmployeeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("productionQuantity", getProductionQuantity())
            .append("productionDate", getProductionDate())
            .append("status", getStatus())
            .append("assignedEquipmentId", getAssignedEquipmentId())
            .append("assignedEmployeeId", getAssignedEmployeeId())
            .toString();
    }
}
